package hku.cs.lunuo.rank;

public class TFTimes {
	private int truTimes = 0;
	private int flsTimes = 0;

	public void add(boolean result) {
		if (result)
			truTimes++;
		else
			flsTimes++;
	}

	public int getTruTimes() {
		return truTimes;
	}

	public int getFlsTimes() {
		return flsTimes;
	}
	
	public void add(TFTimes t){
		truTimes+=t.getTruTimes();
		flsTimes+=t.getFlsTimes();
	}
	
	public String toString(){
		String ret = "";
		ret += "T: "+truTimes+" ";
		ret += "F: "+flsTimes;
		return ret;
	}
	
}